package com.gzx.plugin.tjzy.modular.product.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.gzx.plugin.tjzy.modular.product.entity.GzxProduct;
import com.gzx.plugin.tjzy.modular.product.mapper.GzxProductMapper;
import com.gzx.plugin.tjzy.modular.product.service.GzxProductListService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zjt
 * @description
 * @date 2025/1/21 09:02
 */
@Service
@RequiredArgsConstructor
public class GzxProductListServiceImpl implements GzxProductListService {

    private final GzxProductMapper productMapper;

    /**
     * 获取产品列表
     *
     * @return
     */
    @Override
    @DS("tjzy")
    public List<GzxProduct> getList() {
        return productMapper.selectList();
    }
}
